package cn.echoedu.service;

import cn.echoedu.control.AClassControl;
import cn.echoedu.control.AuthorityControl;
import cn.echoedu.control.ClassNotifyControl;
import cn.echoedu.control.ContactsListControl;
import cn.echoedu.control.DepartmentControl;
import cn.echoedu.control.IndexPicControl;
import cn.echoedu.control.ProfessionalControl;
import cn.echoedu.control.SchoolCalendarControl;
import cn.echoedu.control.SchoolControl;
import cn.echoedu.control.SchoolNotifyControl;
import cn.echoedu.control.StudentControl;
import cn.echoedu.control.TelContactsControl;
import cn.echoedu.control.UpdateUserInfoControl;
import cn.echoedu.model.AClassModel;
import cn.echoedu.model.AppApiModel;
import cn.echoedu.model.RequestMessageModel;
import cn.echoedu.util.WebContext;

public class BaseService {
	
	public DepartmentControl getDepartmentControl() {
		// TODO Auto-generated method stub
		return   new DepartmentControl();
	}
	public ReceiveService getReceiveService(){
		return (ReceiveService)WebContext.getServletContext()
				.getAttribute("ReceiveService");

	}
	public IndexPicControl getIndexPicControl(){
    	return new IndexPicControl();
    }
	public  RequestMessageModel getReqeustMessageModle(){
		return (RequestMessageModel)WebContext.getServletContext()
				.getAttribute("RequestMessageModel");
	}
	public ClassNotifyControl getClassNotifyControl(){
       return new ClassNotifyControl();
    }
	public AppApiModel getAppApiModel(){
		return (AppApiModel) WebContext.getServletContext()
				.getAttribute("AppApiModel");
	}
	public AClassModel getAClassModel(){
		return (AClassModel)WebContext.getServletContext()
				.getAttribute("AClassModel");
	}
	public UpdateUserInfoControl getUpdateUserControl(){
		return new UpdateUserInfoControl();
	}
    public TelContactsControl getTelContactsControl(){
	   return new TelContactsControl();
    }
    public  SchoolNotifyControl getSchoolNotifyControl(){
    	return new  SchoolNotifyControl();
    }
    public AuthorityControl getAuthorityControl(){
    	return new AuthorityControl();
    }
    public StudentControl getStudentControl(){
    	return new StudentControl();
    }
    public SchoolCalendarControl getSchoolCalendarControl(){
    	return new SchoolCalendarControl();
    }
    public ContactsListControl getContactsListControl(){
    	return new ContactsListControl();
    }
    public ProfessionalControl getProfessionalControl(){
    	return new ProfessionalControl();
    }
    public AClassControl getAClassControl(){
    	return new AClassControl();
    }
    public SchoolControl getSchoolControl() {
		// TODO Auto-generated method stub
		return new SchoolControl();
	}

}
